\grid

<#481#>SYNOPSIS:
\grid(<#105#>width<#105#>,<#106#>height<#106#>)(#math79#Δwidth,#math80#Δheight)15 [<#107#>initial-X-integer<#107#>,<#108#>initial-Y-integer<#108#>]
<#481#>

For example, the following are all valid commands:

verbatim56#

The 36 command makes a grid of size <#113#>width<#113#> units by <#114#> height<#114#> units where vertical lines are drawn at intervals of #math81#Δwidth and horizontal lines at intervals of #math82#Δheight. The major motivation for this command is that making a grid in the picture initially can be very useful when laying out pictures -- it's like having a graph underneath the picture which can be eventually deleted or commented out. Moreover, one might actually want a grid as an object in its own right! Figure~1 (on page 14) presents an example of this command.

The <#115#>width<#115#> and <#116#>height<#116#> should be divisible by their respective Δ's, otherwise the grid will not be of correct dimensions. The numbers in 37 at the end are optional. Their absence makes a simple grid with lines. Their presence makes a ``numbered'' grid with integers around the borders where the numbers put have the starting value as specified in 38 argument and are incremented by #math83#Δwidth and #math84#Δheight respectively. If specified, then these starting numbers must be integers. The dimensions are all in units and do not have to be integers, although in most cases one will want integers only. There is an additional constraint when plotting a ``numbered'' grid --- the have to be integers, since one cannot easily generate real numbers from within TEX. None of the errors of this kind are caught, hence, if the grid comes out funny, one of the above-mentioned conditions may have been violated.

The 39 command produces a box and thus needs to be 40 at the required coordinates. The reference point of the grid is the bottom-left corner and the numbers along the borders, if any, do not affect the reference point. If it is desired to have another reference point, then the whole grid statement may be put in a 41 kind of construction.